/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.person;

import enteties.person.LanguageFacadeLocal;
import java.util.Collection;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import util.person.LanguageDetails;

/**
 *
 * @author Gebruiker
 */
@Stateless
public class LanguageBean implements LanguageBeanRemote {
    @EJB
    private LanguageFacadeLocal languageFacade;
    
    @Override
    public Integer createLanguage(String name, String languageCode){
        return languageFacade.createLanguage(name, languageCode);
    }
    
    @Override
    public void editLanguage(Integer id, String name, String languageCode){
        languageFacade.editLanguage(id, name, languageCode);
    }
    
    @Override
    public void removeLanguage(Integer id){
        languageFacade.removeLanguage(id);
    }
    
    @Override
    public LanguageDetails getLanguageDetails(Integer id){
        return languageFacade.getLanguageDetails(id);
    }
    
    @Override
    public Collection<LanguageDetails> getAllLanguageDetails(){
        return languageFacade.getAllLanguageDetails();
    }

    

}

